﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" AutoEventWireup="true"
    CodeFile="Index.aspx.cs" Inherits="Member_Index" Title="会员商务中心" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="Server">
    <script src="../member/js/jquery.js" type="text/javascript"></script>
	<script type="text/javascript">
		var timerID = null;
        var timerRunning = false;
        function stopclock (){
        if(timerRunning)
        clearTimeout(timerID);
        timerRunning = false;}
        function startclock () {
        stopclock();
        showtime();}
        function showtime () {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds();
        var timeValue = "" +((hours >= 12) ? "下午" : "上午" );
        document.getElementById("lblNowDate").innerHTML=timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;}

		jQuery(document).ready(function() {
			jQuery('#info').find('span').click(function(){
				jQuery('#info').hide();
			});
			
		});
	</script>
    <div class="inrt">
		<div class="inms mar_top">
			<b>您好！您共有 <em class="f_c00"><%=remindAllCount %></em> 条提醒</b>
			<p>您有 <em class="f_c00"><%=noreadmesCount  %></em> 条未读询盘留言 <a title="" class="l_c00" href="<%=Base.BasePage.Config.WebURL %>member/Message/ReceiveMessage.aspx">点此查看</a></p>
			<p>您有 <em class="f_c00"><%=nosupplyCount%></em> 条供应信息未通过审核 <a title="" class="l_c00" href="<%=Base.BasePage.Config.WebURL %>member/Trade/SupplyManage.aspx">立即查看</a></p>
			<p>您有 <em class="f_c00"><%=expiredsupplyCount%></em> 条供应信息已过期 <a title="" class="l_c00" href="<%=Base.BasePage.Config.WebURL %>member/Trade/SupplyAdd.aspx">立即重发</a></p>
		</div>
		<div class="ininf mar_top">
			<p class="ininft">
				<strong>供应信息<i class="lt"></i><i class="rt"></i></strong>
			</p>
			<ul class="ininfc">
			<%foreach (System.Data.DataRow dr in supplyTab.Rows)
     { %>
				<li>▪&nbsp;<a title="<%=dr["Name"] %>" href="<%=Base.BasePage.Config.WebURL+"supply/detail-"+dr["ID"]+Base.BasePage.Config.Rewrite%>"><%=dr["Name"].ToString().Length > 20 ? dr["Name"].ToString().Substring(0, 20) : dr["Name"].ToString()%></a> (<%=dr["AddDate"].ToString().Split(' ')[0]%>)</li>
				<%} %>
			</ul>
		</div>
		<div class="ininf mar_lt mar_top">
			<p class="ininft">
				<strong>展会预告<i class="lt"></i><i class="rt"></i></strong>
			</p>
			<ul class="ininfc">
			<%foreach (System.Data.DataRow dr in expoTab.Rows)
     { %>
				<li>▪&nbsp;<a title="<%=dr["Title"] %>" href="<%=Base.BasePage.Config.WebURL+"expo/detail-"+dr["ID"]+Base.BasePage.Config.Rewrite%>"><%=dr["Title"].ToString().Length > 20 ? dr["Title"].ToString().Substring(0, 20) : dr["Title"].ToString()%></a> (<%=dr["AddDate"].ToString().Split(' ')[0]%>)</li>
				<%} %>
			</ul>
		</div>
	</div>
</asp:Content>
